let obj = JSON.parse($response.body);

try {
  let rawValue = obj.features?.tab_setting?.value;
  if (typeof rawValue === "string") {
    let parsedValue = JSON.parse(rawValue);

    if (Array.isArray(parsedValue.tab)) {
      for (let tab of parsedValue.tab) {
        tab.id = "";
      }
      obj.features.tab_setting.value = JSON.stringify(parsedValue);
    }
  }
} catch (e) {
  console.log("处理失败:", e);
}

$done({ body: JSON.stringify(obj) });
